﻿using System;
using System.Collections.Generic;
using DMS.Data;

namespace DMS.Business.Authority
{
    public interface IAuthorityFacade
    {
        /// <summary>
        /// 通过actorId、actorTpye获取权限列表，包括page/function/data权限
        /// </summary>
        /// <param name="actorId"></param>
        /// <param name="actorTpye"></param>
        /// <returns></returns>
        IList<PRM_ControlObjects> GetPermissions(string actorId, Enum actorTpye);
        /// <summary>
        /// 通过用户ID及URL检查权限，包括授权给角色、用户、部门的page/function/data权限
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        bool CheckUrlPermission(string userId, string url);
    }
}
